<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var a=prompt("请输入一个五位数","12321");
        var ge=a%10,shi=a/10%10,bai=a/100%10,qian=a/1000%10,wan=a/10000;
        if(parseInt(ge)==parseInt(wan) && parseInt(shi)==parseInt(qian)){
            alert("是回文数");
        }else{
            alert("不是回文数");
        }

    </script>
</body>
</html>